package ypmits.components.slider {
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	/**
	 * @author Dave Lenz
	 */
	public class SliderGroup extends Sprite {

		override public function addChild( child : DisplayObject ) : DisplayObject 
		{
			if( !child is Slider ) {
				throw new Error("ERROR! The child you're adding to SliderGroup is NOT of type ypmits.components.slider.Slider!" );
			} else {
				return super.addChild( child );
			}
		}
	}
}
